<?php
/**
 * 首页
 * 州弟医院信息系统 - 州弟学安全
 */

// 包含头文件
include 'includes/header.php';
?>

<div class="hero-section">
  <div class="container">
    <div class="row align-items-center">
      <div class="col-lg-6">
        <h1 class="display-4 font-weight-bold text-primary">医疗健康，从这里开始</h1>
        <p class="lead my-4">州弟医院提供尖端医疗服务，致力于为每位患者带来个性化的医疗体验与全面的健康管理。</p>
        <div class="hero-buttons">
          <a class="btn btn-primary btn-lg rounded-pill px-4 mr-3" href="appointment.php">
            <i class="fas fa-calendar-check mr-2"></i>在线预约
          </a>
          <?php if (!isLoggedIn()): ?>
            <a class="btn btn-outline-primary btn-lg rounded-pill px-4" href="register.php">
              <i class="fas fa-user-plus mr-2"></i>注册账户
            </a>
          <?php endif; ?>
        </div>
      </div>
      <div class="col-lg-6 mt-5 mt-lg-0">
        <svg viewBox="0 0 500 400" class="img-fluid" xmlns="http://www.w3.org/2000/svg">
          <style>
            .medical-blue { fill: #4285f4; }
            .medical-light-blue { fill: #7baaf7; }
            .medical-lightest-blue { fill: #c6dafc; }
            .medical-white { fill: #ffffff; }
            .medical-silver { fill: #f1f3f4; }
            .medical-green { fill: #34a853; }
          </style>
          <!-- 医院大楼 -->
          <rect x="100" y="150" width="300" height="200" rx="5" class="medical-silver" />
          <rect x="130" y="180" width="60" height="80" rx="2" class="medical-white" />
          <rect x="220" y="180" width="60" height="80" rx="2" class="medical-white" />
          <rect x="310" y="180" width="60" height="80" rx="2" class="medical-white" />
          <rect x="170" y="300" width="80" height="50" class="medical-white" />
          <rect x="250" y="300" width="80" height="50" class="medical-light-blue" />
          <!-- 医院标志 -->
          <rect x="200" y="110" width="100" height="40" rx="20" class="medical-blue" />
          <rect x="230" y="80" width="40" height="100" rx="20" class="medical-blue" />
          <!-- 人物 -->
          <circle cx="150" cy="330" r="15" class="medical-light-blue" />
          <rect x="145" y="345" width="10" height="25" class="medical-light-blue" />
          <circle cx="350" cy="330" r="15" class="medical-green" />
          <rect x="345" y="345" width="10" height="25" class="medical-green" />
          <!-- 救护车 -->
          <rect x="50" y="350" width="80" height="30" rx="5" class="medical-white" />
          <rect x="50" y="365" width="80" height="15" rx="2" class="medical-blue" />
          <rect x="60" y="352" width="60" height="13" rx="2" class="medical-lightest-blue" />
          <circle cx="65" cy="380" r="8" fill="#333" />
          <circle cx="115" cy="380" r="8" fill="#333" />
          <rect x="85" y="355" width="15" height="5" class="medical-blue" />
        </svg>
      </div>
    </div>
  </div>
</div>

<div class="services-section py-5 bg-light">
  <div class="container">
    <div class="section-title text-center mb-5">
      <h2 class="font-weight-bold text-primary">我们的服务</h2>
      <p class="text-muted">专业医疗团队，先进设备，便捷服务</p>
    </div>
    <div class="row">
      <div class="col-md-4">
        <div class="card service-card h-100 border-0 shadow-sm">
          <div class="card-body text-center p-4">
            <div class="service-icon mb-4">
              <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#4285f4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
                <circle cx="9" cy="7" r="4"></circle>
                <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
                <path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
              </svg>
            </div>
            <h4 class="card-title">专业医师团队</h4>
            <p class="card-text text-muted">我院拥有一支高素质的医疗团队，汇聚了众多医学领域的权威专家，为患者提供专业诊疗服务。</p>
            <a href="doctors.php" class="btn btn-outline-primary rounded-pill mt-3">查看医生团队</a>
          </div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="card service-card h-100 border-0 shadow-sm">
          <div class="card-body text-center p-4">
            <div class="service-icon mb-4">
              <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#4285f4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"></path>
                <path d="M9 12h6"></path>
                <path d="M12 9v6"></path>
              </svg>
            </div>
            <h4 class="card-title">先进设备设施</h4>
            <p class="card-text text-muted">医院配备先进的医疗设备和舒适的就医环境，为患者提供全方位诊断和治疗服务，确保医疗质量。</p>
            <a href="departments.php" class="btn btn-outline-primary rounded-pill mt-3">了解科室设备</a>
          </div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="card service-card h-100 border-0 shadow-sm">
          <div class="card-body text-center p-4">
            <div class="service-icon mb-4">
              <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#4285f4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
                <line x1="16" y1="2" x2="16" y2="6"></line>
                <line x1="8" y1="2" x2="8" y2="6"></line>
                <line x1="3" y1="10" x2="21" y2="10"></line>
                <path d="M8 14h.01"></path>
                <path d="M12 14h.01"></path>
                <path d="M16 14h.01"></path>
                <path d="M8 18h.01"></path>
                <path d="M12 18h.01"></path>
                <path d="M16 18h.01"></path>
              </svg>
            </div>
            <h4 class="card-title">便捷预约服务</h4>
            <p class="card-text text-muted">提供在线预约挂号服务，节省您的时间，提高就医效率，让您的就医体验更加便捷舒适。</p>
            <a href="appointment.php" class="btn btn-outline-primary rounded-pill mt-3">立即预约</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="news-section py-5">
  <div class="container">
    <div class="row">
      <div class="col-lg-8">
        <div class="section-title mb-4">
          <h2 class="font-weight-bold text-primary">医院动态</h2>
        </div>
        <div class="card border-0 shadow-sm mb-4">
          <div class="card-body p-4">
            <div class="row align-items-center">
              <div class="col-md-4 mb-3 mb-md-0">
                <svg viewBox="0 0 200 150" xmlns="http://www.w3.org/2000/svg" class="img-fluid rounded">
                  <rect width="200" height="150" fill="#f8f9fa"/>
                  <circle cx="100" cy="60" r="30" fill="#4285f4"/>
                  <rect x="40" y="100" width="120" height="10" rx="5" fill="#c6dafc"/>
                  <rect x="60" y="120" width="80" height="10" rx="5" fill="#c6dafc"/>
                  <path d="M85,50 L115,50 L115,70 L85,70 Z" fill="#ffffff"/>
                  <path d="M95,40 L105,40 L105,80 L95,80 Z" fill="#ffffff"/>
                </svg>
              </div>
              <div class="col-md-8">
                <h4>医院举办"健康生活,美好未来"健康知识讲座</h4>
                <p class="text-muted">近日，州弟医院举办了以"健康生活,美好未来"为主题的健康知识讲座，受到了社区居民的热烈欢迎。</p>
                <small class="text-muted">2023-05-15</small>
              </div>
            </div>
          </div>
        </div>
        <div class="card border-0 shadow-sm mb-4">
          <div class="card-body p-4">
            <div class="row align-items-center">
              <div class="col-md-4 mb-3 mb-md-0">
                <svg viewBox="0 0 200 150" xmlns="http://www.w3.org/2000/svg" class="img-fluid rounded">
                  <rect width="200" height="150" fill="#f8f9fa"/>
                  <path d="M100,30 C60,30 60,120 100,120 C140,120 140,30 100,30" fill="#ea4335"/>
                  <path d="M100,40 C70,40 70,110 100,110 C130,110 130,40 100,40" fill="#ffffff"/>
                  <path d="M100,55 C85,55 85,95 100,95 C115,95 115,55 100,55" fill="#ea4335"/>
                  <path d="M85,70 L115,70" stroke="#ffffff" stroke-width="3"/>
                  <path d="M85,80 L115,80" stroke="#ffffff" stroke-width="3"/>
                </svg>
              </div>
              <div class="col-md-8">
                <h4>我院心血管内科成功实施复杂心脏介入手术</h4>
                <p class="text-muted">我院心血管内科团队成功为一名85岁高龄患者实施了复杂冠脉介入治疗，标志着我院在该领域达到了新高度。</p>
                <small class="text-muted">2023-04-28</small>
              </div>
            </div>
          </div>
        </div>
        <div class="text-center mt-4">
          <a href="news.php" class="btn btn-outline-primary rounded-pill px-4">查看更多动态</a>
        </div>
      </div>
      <div class="col-lg-4 mt-5 mt-lg-0">
        <div class="info-sidebar">
          <div class="card border-0 shadow-sm mb-4">
            <div class="card-body p-4">
              <h4 class="text-primary mb-4"><i class="fas fa-info-circle mr-2"></i>就诊指南</h4>
              <ul class="list-unstyled">
                <li class="d-flex align-items-center mb-3">
                  <div class="icon-circle bg-primary text-white mr-3">
                    <i class="fas fa-clock"></i>
                  </div>
                  <div>
                    <strong>门诊时间：</strong><br>
                    周一至周日 8:00-17:30
                  </div>
                </li>
                <li class="d-flex align-items-center mb-3">
                  <div class="icon-circle bg-primary text-white mr-3">
                    <i class="fas fa-phone-alt"></i>
                  </div>
                  <div>
                    <strong>预约电话：</strong><br>
                    010-12345678
                  </div>
                </li>
                <li class="d-flex align-items-center">
                  <div class="icon-circle bg-primary text-white mr-3">
                    <i class="fas fa-map-marker-alt"></i>
                  </div>
                  <div>
                    <strong>医院地址：</strong><br>
                    北京市海淀区知春路123号
                  </div>
                </li>
              </ul>
            </div>
          </div>
          <div class="card border-0 shadow-sm">
            <div class="card-body p-4">
              <h4 class="text-primary mb-4"><i class="fas fa-user-md mr-2"></i>本周专家出诊</h4>
              <div class="table-responsive">
                <table class="table table-sm">
                  <thead>
                    <tr>
                      <th>时间</th>
                      <th>上午</th>
                      <th>下午</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td>周一</td>
                      <td>张医生</td>
                      <td>王医生</td>
                    </tr>
                    <tr>
                      <td>周二</td>
                      <td>李医生</td>
                      <td>赵医生</td>
                    </tr>
                    <tr>
                      <td>周三</td>
                      <td>刘医生</td>
                      <td>陈医生</td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <a href="schedule.php" class="btn btn-sm btn-outline-primary rounded-pill btn-block mt-3">查看完整出诊表</a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- 添加一个统计数据部分 -->
<div class="stats-section py-5 bg-primary text-white">
  <div class="container">
    <div class="row text-center">
      <div class="col-6 col-md-3 mb-4 mb-md-0">
        <div class="stat-item">
          <div class="stat-icon mb-2">
            <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
              <circle cx="9" cy="7" r="4"></circle>
              <path d="M22 21v-2a4 4 0 0 0-3-3.87"></path>
              <path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
            </svg>
          </div>
          <h3 class="stat-number font-weight-bold">12000+</h3>
          <p class="stat-title">患者信任</p>
        </div>
      </div>
      <div class="col-6 col-md-3 mb-4 mb-md-0">
        <div class="stat-item">
          <div class="stat-icon mb-2">
            <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
              <polyline points="9 22 9 12 15 12 15 22"></polyline>
            </svg>
          </div>
          <h3 class="stat-number font-weight-bold">15</h3>
          <p class="stat-title">临床科室</p>
        </div>
      </div>
      <div class="col-6 col-md-3 mb-4 mb-md-0">
        <div class="stat-item">
          <div class="stat-icon mb-2">
            <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <path d="M22 12h-4l-3 9L9 3l-3 9H2"></path>
            </svg>
          </div>
          <h3 class="stat-number font-weight-bold">50+</h3>
          <p class="stat-title">专家医师</p>
        </div>
      </div>
      <div class="col-6 col-md-3">
        <div class="stat-item">
          <div class="stat-icon mb-2">
            <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"></path>
            </svg>
          </div>
          <h3 class="stat-number font-weight-bold">98%</h3>
          <p class="stat-title">患者满意度</p>
        </div>
      </div>
    </div>
  </div>
</div>

<style>
  /* 添加自定义样式 */
  .hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  }
  
  .service-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
  }
  
  .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .stats-section {
    background: linear-gradient(90deg, #4285f4 0%, #34a853 100%);
  }
  
  .card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
  }
</style>

<?php
// 包含尾文件
include 'includes/footer.php';
?> 